package com.xyw.code.efficient_programming.lambda.cart;

import com.sun.scenario.effect.impl.prism.PrImage;

/**
 * Created by xuyiwei on 2020/1/6 10:14
 */
public enum CategoryEnum {
    CLOTHING(10,"服装类"),
    SPORTS(20,"运动类"),
    BOOKS(30,"数码类"),
    ELECTRONICS(40,"数码类")
    ;
    //商品类型code
    private Integer code;
    //商品类型名称
    private String name;
    CategoryEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
